{% extends "publisher/publisher.html" %}

{% block form %}

<form method="post">
    {% for msg in get_flashed_messages(category_filter=['err']) %}
    <p style="color: red">{{ msg }}</p>
    {% endfor %}
    <div class="form-group">
        <label>组织名称</label>
        {{ form.organization_name }}
        {% for v in form.organization_name.errors %}
        <p style="color: red"> {{ v }}</p>
        {% endfor %}
    </div>
    <div class="form-group">
        <label>公众号名称</label>
        {{ form.official_accounts_name }}
        {% for v in form.official_accounts_name.errors %}
        <p style="color: red"> {{ v }}</p>
        {% endfor %}
    </div>
    <div class="form-group">
        <label>负责人姓名</label>
        {{ form.person_name }}
        {% for v in form.person_name.errors %}
        <p style="color: red"> {{ v }}</p>
        {% endfor %}
    </div>
    <div class="form-group">
        <label>负责人学号（即账号）</label>
        {{ form.person_num }}
        {% for v in form.person_num.errors %}
        <p style="color: red"> {{ v }}</p>
        {% endfor %}
    </div>
    <div class="form-group">
        <label>负责人微信</label>
        {{ form.person_wechat_id }}
        {% for v in form.person_wechat_id.errors %}
        <p style="color: red"> {{ v }}</p>
        {% endfor %}
    </div>
    <div class="form-group">
        <label>负责人电话</label>
        {{ form.phone_num }}
        {% for v in form.phone_num.errors %}
        <p style="color: red"> {{ v }}</p>
        {% endfor %}
    </div>
    <div class="form-group">
        <label>密码</label>
        {{ form.password }}
        {% for v in form.password.errors %}
        <p style="color: red"> {{ v }}</p>
        {% endfor %}
    </div>
    <div class="form-group">
        <label>确认密码</label>
        {{ form.repeat_password }}
        {% for v in form.repeat_password.errors %}
        <p style="color: red"> {{ v }}</p>
        {% endfor %}
    </div>
    <div class="text-center">
        {{ form.submit }}
    </div>
    {{ form.csrf_token }}
</form>

{% endblock %}


{% block js %}
<script>
function fun()
{
    var stu_num = document.getElementById("stu_num");
    if(stu_num.value != "")
        alert("提交成功 "+stu_num.value);
}
</script>
{% endblock %}